const MessageDecorator:ClassDecorator = (target:Function) => {
    target.prototype.message = (content:string) => {
        console.log(content);
    }
}

@MessageDecorator
class LoginController{
    public login(){
        console.log("登录业务处理");
        this.message("登陆成功！");
    }
}

new LoginController().login();


@MessageDecorator
class ArticleController{
    public handle(){
        this.message("文章处理成功！");
    }
}

new ArticleController().handle();